package com.project.personalfundmanager.client.facebook;

import com.google.gwt.core.client.JavaScriptObject;
import com.project.personalfundmanager.client.common.GlobalRegister;

public class FacebookHelper
{
	public static void getUserModel( final JSOReadyListener listener )
	{
		GlobalRegister.getFbCore().api( "/me", new Callback<JavaScriptObject>()
		{
			public void onSuccess( JavaScriptObject result )
			{
				JSOModel model = result.cast();
				listener.onJSOReady( model );
			}
		} );
	}
}
